<html><head>
        <link href="<?php echo base_url('assets/css/formkk.css'); ?>" rel="stylesheet" type="text/css">
        <link href="<?php echo base_url('assets/js/jquery-ui.css'); ?>" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.9.1.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui.js'); ?>"></script>


    </head>
    <body>
        
            <table width="100%" border="0" align="center">
                <tr>
                    <td colspan="10" class="trheader">Laporan Data Kartu Keluarga</td>
                </tr>

                <tr>
                    <td colspan="10" bordercolor="#666666" class="trheader">Kategori : Per Nomor Kartu Keluarga</td>
                </tr>

                <tr>
                    <td colspan="10" bordercolor="#666666" class="tr">&nbsp;</td>
                </tr>
                <form action="<?php echo base_url('kk/cetak_nokk'); ?>" method="post" enctype="multipart/form-data">
                    <tr>
                        <td colspan="10" bordercolor="#666666" class="cari">Cari Nomor KK: 
                            <input type="text" name="no_kk" id="no_kk" class="textinput" placeholder="No KK" />
                            <input type="submit" name="cari" id="cari" value="Cari" class="btn btn-large"/></td>
                    </tr>
                </form>
                <tr>
                    <td colspan="10" class="jeda">&nbsp;</td>
                </tr>
                <tr>
                    <td width="4%" height="47" bordercolor="#666666"><div align="center"><strong>No.</strong></div></td>
                    <td width="11%" bordercolor="#666666"><div align="center"><strong>No KK</strong></div></td>
                    <td width="14%" bordercolor="#666666"><div align="center"><strong>Nama</strong></div></td>
                    <td width="14%" bordercolor="#666666"><div align="center"><strong>NIK</strong></div></td>
                    <td width="7%" bordercolor="#666666"><div align="center"><strong>JK</strong></div></td>
                    <td width="9%" bordercolor="#666666"><div align="center"><strong>Tempat Lahir</strong></div></td>
                    <td width="9%" bordercolor="#666666"><div align="center"><strong>Tgl Lahir</strong></div></td>
                    <td width="9%" bordercolor="#666666"><div align="center"><strong>Agama</strong></div></td>
                    <td width="11%" bordercolor="#666666"><div align="center"><strong>Pendidikan</strong></div></td>
                    <td width="12%" bordercolor="#666666"><div align="center"><strong>Pekerjaan</strong></div></td>
                </tr>
                <?php
                if (isset($kk)) {
                    $no = 1;
                    foreach ($kk->result() as $data_kk) {
                        echo '<tr>';
                        echo '<td><div align="center">' . $no++ . '</div></td>';
                        echo '<td>' . $data_kk->no_kk . '</td>';
                        echo '<td>' . $data_kk->nama_kk . '</td>';
                        echo '<td>' . $data_kk->nik_kk . '</td>';
                        echo '<td>' . $data_kk->jenis_kelamin . '</td>';
                        echo '<td>' . $data_kk->tempat_lahir . '</td>';
                        echo '<td><div align="center">' . $this->tanggal->tanggal_indonesia($data_kk->tgl_lahir) . '</div></td>';
                        echo '<td>' . $data_kk->agama . '</td>';
                        echo '<td>' . $data_kk->pendidikan . '</td>';
                        echo '<td>' . $data_kk->pekerjaan . '</td>';
                        echo '</tr>';
                    }
                }
                ?>
            </table>
            <br>
            <table width="100%">
                <tr>
                    <td width="6%" bordercolor="#666666"><div align="center"><strong>No.</strong></div></td>
                    <td width="14%" bordercolor="#666666"><div align="center"><strong>Status Perkawinan</strong></div></td>
                    <td width="20%" bordercolor="#666666"><div align="center"><strong>Status Hub. Keluarga</strong></div></td>
                    <td width="12%" bordercolor="#666666"><div align="center"><strong>Kewarganegaraan</strong></div></td>
                    <td width="15%" bordercolor="#666666"><div align="center"><strong>No. Paspor</strong></div></td>
                    <td width="11%" bordercolor="#666666"><div align="center"><strong>No. KITAS</strong></div></td>
                    <td width="11%" bordercolor="#666666"><div align="center"><strong>Nama Ibu</strong></div></td>
                    <td width="11%" bordercolor="#666666"><div align="center"><strong>Nama Ayah</strong></div></td>
                </tr>
                <?php
                if (isset($kk)) {
                    $no = 1;
                    foreach ($kk->result() as $data_kk) {
                        echo '<tr>';
                        echo '<td><div align="center">' . $no++ . '</div></td>';
                        echo '<td>' . $data_kk->status_kawin . '</td>';
                        echo '<td>' . $data_kk->status_keluarga . '</td>';
                        echo '<td>' . $data_kk->kewarganegaraan . '</td>';
                        echo '<td>' . $data_kk->no_passpor . '</td>';
                        echo '<td>' . $data_kk->no_kitas . '</td>';
                        echo '<td>' . $data_kk->nama_ibu . '</td>';
                        echo '<td>' . $data_kk->nama_ayah . '</td>';
                        echo '</tr>';
                    }
                }
                ?>
            </table>
            <br>
            <table width="100%">
                <tr>
                    <td width="100%" colspan="13" class="cetak"><div align="center"><a href="<?php echo base_url('cetak_laporan_kk/cetak_kk_nomor/'.$data_kk->no_kk); ?>">Cetak Laporan</a></div></td>
                </tr>
            </table>
    </body>
</html>
